package com.junzhiit.nengji.cms.web.controller;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import com.junzhiit.nengji.cms.service.VipGoodsService;
import com.junzhiit.nengji.cms.web.vo.DataTablesParamVO;
import com.junzhiit.nengji.cms.web.vo.VipGoodsVO;

import io.swagger.annotations.ApiOperation;

@RestController
@RequestMapping("/vip/goods")
public class VipGoodsController extends BaseController{
	
	@Autowired
	private VipGoodsService vipGoodsService;
	
	@ApiOperation(value = "查询该身份所有商品")
	@RequestMapping(method = RequestMethod.GET)
	public Map<String, Object> findAll(DataTablesParamVO dtp,VipGoodsVO vipGoodsVO) {
		return vipGoodsService.findByVipId(dtp,vipGoodsVO);
	}
}
